home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1995 October
/
EnigmA AMIGA RUN 01 (1995)(G.R. Edizioni)(IT)[!][issue 1995-10][Aminet 7].iso
/
Aminet
/
comm
/
misc
/
avmNfax1_33.lha
/
AVMSuite
/
rexx
/
delete.avm
< prev
next >
Wrap
Text File
|
1994-06-24
|
1KB
|
53 lines
/* */
parse arg mailbox logs
numlogs = words(logs)
do i = 1 to numlogs
call loadLogEntry(mailbox, word(logs, i))
address command 'delete >nil: <nil: quiet' logFile(mailbox, word(logs, i)) || "#?"
if (log.fileName ~= "" & (verify(log.fileName, '/:', 'M') = 0)) then
address command 'delete >nil: <nil: quiet' voiceFile(mailbox, log.fileName) || "#?"
if (log.altFileName ~= "" & (verify(log.altFileName, '/:', 'M') = 0)) then
address command 'delete >nil: <nil: quiet' voiceFile(mailbox, log.altFileName) || "#?"
address rexx 'broadcast' 'deletefrommailbox' mailbox word(logs, i)
end
exit
error:
exit
voiceFile: procedure
parse arg mailbox, magiccookie
if (verify(magiccookie, '/:', 'M') = 0) then
return 'avm:' || mailbox || '/voices/' || magiccookie
else
return magiccookie
logFile: procedure
parse arg mailbox, magiccookie
return 'avm:' || mailbox || '/logs/' || magiccookie
loadLogEntry: procedure expose log.
if arg() ~= 2 then do
rc = "loadLogEntry: bad args"
signal error
end
parse arg mailbox, handle
call open(handle, logFile(mailbox, handle), 'r')
do while ~eof(handle)
line = readln(handle)
parse upper var line variable '=' value
log.variable = value
end
call close(handle)
return